package com.business.system.bean;

import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author: xudy
 * @date: 2018/04/07 16:47
 * @description:
 */
@Table(name = "BACK_FEE_LOG", deleteField = "返利记录")
public class BackFeeLogBean extends ModelBean {
	@Column(pk = true, name = "ID", type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String id;

	@Column(name = "USER_ID", type = Type.变长文本, description = "返利属于的人", size = 32)
	private String userId;

	@Column(name = "FROM_USER_ID", type = Type.变长文本, description = "返利从哪个人来", size = 32)
	private String fromUserId;

	@Column(name = "RESOURCE_ID", type = Type.变长文本, description = "1-代理 查询orders表 2-推荐返利 查询apply", size = 32)
	private String resourceId;

	@Column(name = "TYPE", type = Type.数字整型, description = "1-代理 2-推荐", size = 1)
	private int type;

	public static int AGENT = 1;
	public static int RECM = 2;

	@Column(name = "STATE", type = Type.数字整型, description = "1-等待创建结算 2-已创建结算清单", size = 1)
	private int state;

	public static int TO_CREATE_SETTLE = 1;
	public static int IS_CREATE_SETTLE = 2;

	@Column(name = "BACK_FEE", type = Type.数字双精度型, description = "返利金额")
    private double backFee;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public double getBackFee() {
        return backFee;
    }

    public void setBackFee(double backFee) {
        this.backFee = backFee;
    }
}